﻿using d1Common.WebController;
using d1Project.Modules.Common.do4A.Domain;
using d1Project.Modules.Common.do4A.Models;
using d1Project.Tools;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace d1Project.Modules.Common.do4A.Controllers.a2
{
    [Route("do4A/a2/MyToken")]
    public class MyToken2Controller : Authorize2Controller
    {
        protected override DbContext dbContext
        {
            get
            {
                return this.db;
            }
        }
        private do4ADbContext db = new do4ADbContext();
        public IHttpActionResult Delete()
        {
            AuthenticationMgr.Instance.RemoveToken2(this.Token);
            return Ok();
        }
    }
}
